<?php
if (empty($models)) {
	echo '无此商家的历史记录';
} else {
?>
<div>最近记录</div><?php
				   foreach ($models as $model) {
			   ?>
	<div class="span-2"><?php echo CHtml::link($model->receiptDate,
									array(
										'view',
										'id' => $model->id
									), array(
										'target' => '_blank'
									));
						?></div>
	<div class="span-4"><?php echo $model->project->name; ?></div>
	<div class="span-4">总价： <?php echo Yii::app()->format->formatCurrency($model->getTotalPrice()); ?></div>
	<div class="clear"></div>
<?php
	}
}
